package com.spyrx7.fang_erhuo.util;

import android.content.Context;
import android.content.Intent;
import android.widget.ImageView;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.ImageLoader;


/**
 * Created by pc-spyrx7 on 2015/12/21.
 * 作者  pc-spyrx7
 * 邮箱 spyhanfeng@qq.com
 */
public class UIHelp {
    public static final boolean DEBUG = Boolean.parseBoolean("true");
    public static final String APPLICATION_ID = "com.spyrx7.huanxindemo";
    public static final String BUILD_TYPE = "debug";
    public static final String FLAVOR = "";
    public static final int   VERSION_CODE = 1;
    public static final String VERSION_NAME = "1.0";


/*    public static void imageLoaderCache(Context context,ImageView img,String url){
        RequestQueue queue = VolleyUtil.getRequestQueue(context);

        ImageLoader imageLoader = new ImageLoader(queue , new BitmapCache());
        ImageLoader.ImageListener listener = ImageLoader.getImageListener(img, R.drawable.ico_touxiang128, R.drawable.ico_touxiang128);

        imageLoader.get(url,listener);
    }*/

/*    public static ImageView toImageLoaderCache(Context context,ImageView img,String url){
        RequestQueue queue = VolleyUtil.getRequestQueue(context);

        ImageLoader imageLoader = new ImageLoader(queue , new BitmapCache());
        ImageLoader.ImageListener listener = ImageLoader.getImageListener(img, R.drawable.text2, R.drawable.text1);

        imageLoader.get(url,listener);
        img.setScaleType(ImageView.ScaleType.CENTER_CROP);
        return img;
    }*/

  /*  public static void gotoLogin(Context context){
        context.startActivity(new Intent(context, LoginActivity.class));
    }*/

}
